<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8;" />
<link rel="stylesheet" type="text/css" href="/dqchat/Public/css/Homepage/style.css"/>
<script type="text/javascript" src="/dqchat/Public/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" >
function iFrameHeight() {
    var ifm = document.getElementById("homepage");
    var subWeb = document.frames ? document.frames["homepage"].document : ifm.contentDocument;
    if (ifm != null && subWeb != null) {
         ifm.height = subWeb.body.scrollHeight;
    }
}
</script>
</head>
<body>
<div class="work_wrap">
	<script type="text/javascript" src="/dqchat/Public/js/jquery-1.11.0.min.js" ></script>
<style>
.active a {background:#0094FF;color:#fff;}
</style>
<script>


$(function(){
	menu = <?php echo I('get.hmenu');?>;	
	if(menu){
	$('.home_bk').eq(menu).addClass('active');
	}
	$('.home_bk:eq(1)').click(function(){	
	$('.home_bk').removeClass('active');
	$(this).addClass('active');	
	})
})



</script>
<div class="home_menu1">
	<div class="home_menu2"><a href="<?php echo U('Home/Index/index');?>"><img src="/dqchat/Public/img/<?php echo C('filename');?>/Hlogo.jpg" /></a></div>
	<div class="home_menu3"><a href="<?php echo U('Home/Index/index');?>"><?php echo C('title');?></a></div>
	<div class="home_menu4">	  <ul>
		<li class="home_bk"><a href="<?php echo U('Home/Index/index?hmenu=0');?>">首页</a ></li>
		<li class="home_bk"><a href ="/dqchat/download/setup.exe">下载中心</a></li>
		<li class="home_bk"><a href="<?php echo U('Home/Index/rank?hmenu=2');?>">人气排行</a></li>
		<li class="home_bk"><a href="<?php echo U('Home/Index/worker?hmenu=3');?>">虚拟商城</a></li>
		<li class="home_bk"><a href="<?php echo U('User/index/index?hmenu=4');?>">个人中心</a></li>
		<li class="home_bk"><a href="<?php echo U('Home/Index/worker?hmenu=5');?>">加盟合作</a></li>	  </ul>
	</div>
</div>

	<div style="clear:both"></div>
	<iframe width="1020px"  frameborder="0" style="overflow-y:auto;" noresize="noresoze" scrolling="no" onload="iFrameHeight();" id="homepage" name="homepage" src="<?php echo U('Login/index');?>">	
	</iframe>	
		<div style="clear:both"></div>
	<div class="home_logo"><?php echo C('copyright');?></div>


</div>
</body>
</html>